/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.admin.controller;

import com.admin.model.ContactMessageFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Tuan Long
 */
@Stateless
public class NotificationManager implements NotificationManagerRemote {
    @EJB
    private ContactMessageFacadeLocal contactMessageFacade;

    
    @Override
    public List<String> getNewMessage() {
        return contactMessageFacade.getNewMessage();        
    }

    @Override
    public List<String> activeMessageRead(int msgId) {          
        return contactMessageFacade.activeMessageRead(msgId);
    }

    @Override
    public int getNewRegis() {
        return contactMessageFacade.getNewRegis();
    }

    @Override
    public int getNewComments() {
        return contactMessageFacade.getNewComments();
    }
    
    
}
